package com.gmail.at.dengtooling.transport;

import com.gmail.at.dengtooling.api.Listener;
import com.gmail.at.dengtooling.packets.KeyExchange;
import com.gmail.at.dengtooling.transport.encryer.Encryer;
import com.gmail.at.dengtooling.transport.encryer.NullEncryer;

/**
 * implement of the transport layer
 * @author linybin7
 * 2012-3-3
 */
public class TransportImp implements Listener{
	
	private TransportStat stat;
	
	private Encryer c2sEncry;
	
	private Encryer s2cEncry;

	public TransportImp(){
		c2sEncry=new NullEncryer();
		s2cEncry=new NullEncryer();
	}
	
	public void onSendSayHello(byte[] buffer) {
		
	}

	public void onRecieveSayHello(byte[] buffer) {
		
	}

	public void onSendKeyExchange(KeyExchange keyExchange) {
		
	}

	public void onReciveKeyExchange(KeyExchange keyExchange) {
		
	}
	
	public TransportStat getStat() {
		return stat;
	}

	public void setStat(TransportStat stat) {
		this.stat = stat;
	}

}